Adding links to specialized country, state, territory articles ของ แม่แบบ:Flagg

See also: Help:Table#Adding links to specialized country, state, or territory articles.

For example:

Once you have a table with {{flaglist}} or other flag template it is easy to convert the links to specialized links. So instead of Oklahoma you would have Incarceration in Oklahoma, or if that article does not exist, then Crime in Oklahoma.

Use a global find-and-replace in the wikitext. Replace:

{{flaglist

with

{{flagg|us*eft|pref=Incarceration in|pref2=Crime in

The {{flagg}} template looks for the articles. If it finds one of the two choices it adds the link and an asterisk after the state, country, territory, or other subnational area name. If it does not find either article, it just adds the standard link.

Substitute your preferred topics in the pref= and pref2= spots. For more info see Help:Table and its sections on adding flags and country/state/territory links.

This particular use of {{flagg}} parameters is expensive and can only be used on a few hundred links per article. Every time the article is saved it occurs. So only one big country table per article. Other country tables in the same article should use standard links.